package com.tg.data.http.entity;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;

import java.util.ArrayList;
import java.util.List;

public class MessageTipDataBean implements Parcelable {
    @SerializedName("switch")
    public int mSwitch;
    public String tip;
    public String icon;
    public String url;
    public String btnText;


    protected MessageTipDataBean(Parcel in) {
        mSwitch = in.readInt();
        tip = in.readString();
        icon = in.readString();
        url = in.readString();
        btnText = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(mSwitch);
        dest.writeString(tip);
        dest.writeString(icon);
        dest.writeString(url);
        dest.writeString(btnText);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<MessageTipDataBean> CREATOR = new Creator<MessageTipDataBean>() {
        @Override
        public MessageTipDataBean createFromParcel(Parcel in) {
            return new MessageTipDataBean(in);
        }

        @Override
        public MessageTipDataBean[] newArray(int size) {
            return new MessageTipDataBean[size];
        }
    };
}
